package com.sinaapp.gavinzhang.GSpider;

import com.sinaapp.gavinzhang.GSpider.core.AbstractPageProcessor;
import org.jsoup.nodes.Document;
import org.jsoup.select.Elements;

/** 
 * 系统实现的默认用户处理类
 * @author gavin
 * */
public class DefaultPageProcessor extends AbstractPageProcessor {
	@Override
	public Elements preDispose(Document html) {
		return html.select("body");
	}

	/** 打印处网址标题和网址信息 */
	@Override
	public void dispose(Document html, String webUrl) {
		System.out.println(html.title()+" "+webUrl+" "+Thread.currentThread().getName());
	}
}
